import asyncio


async def task(word, time):
    print("start ", word)
    await asyncio.sleep(time)
    print("end ", word)


async def main():
    task1 = asyncio.create_task(task("hello", 2))
    task2 = asyncio.create_task(task("world", 3))
    # await task1,task2
    await task1
    await task2


asyncio.run(main())
print("end")

""" Run
start  hello
start  world
end  hello
end  world
end

"""
